package com.example.mapper;

import com.example.pojo.User;
import com.example.vo.QueryVO;

import javax.management.Query;
import java.util.List;

public interface UserMapper
{
    // 方法名要和mapper的xml里面的id要一致
    User queryUserById(int id);
    User queryUserByUsername1(String name);
    User queryUserByUsername2(String name);

    List<User> queryUserByQueryVo(QueryVO queryVo);

    List<User> queryAll();

    int  saveUser(User user);
    int updateUserById(User user);
    int deleteUserById(int id);


    int queryUserCount();

    List<User> queryUserByWhere(User user);

    List<User> queryUserByWhere2(User user);

    int deleteByQueryVo(QueryVO queryVO);

    List<User> queryUserOrders();
}
